package com.letoken.platform.repo.app.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 作者
 * @since 2023-01-11
 */
@Getter
@Setter
@TableName("app_user_log")
@ApiModel(value = "AppUserLog对象", description = "")
public class AppUserLog extends Model<AppUserLog> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户id")
      @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private Integer userId;

    @ApiModelProperty("触发人id")
    @TableField("trigger_id")
    private Integer triggerId;

    @ApiModelProperty("类型 1.绑定邀请关系  2.修改上级业绩 3.修改邀请人等级 4.直退奖励 5.团队奖励 6.周期释放 .7直推加速释放 8。团队加速释放")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty("唯一标识")
    @TableField("uuid")
    private String uuid;

    @TableField("create_time")
    private LocalDateTime createTime;




    @Override
    public Serializable pkVal() {
        return this.userId;
    }

}
